#!/bin/env python
import test
from flask import Flask, render_template, request
from flask_socketio import SocketIO

app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)

def test():
    num = 0
    for i in range(0, 10):
        socketio.emit('response3', str(num), namespace='/socket_ping')
        num += 1
        time.sleep(1)